GXJobPrintDialog
QuickDraw GX sends theGXJobPrintDialog
message when the application displays the Print dialog box. You can override theGXJobPrintDialog
message to modify the behavior or appearance of the Print dialog box. Your override of theGXJobPrintDialog
message must match the following formal declaration:
OSErr MyJobPrintDialog (gxDialogResult *aDialogResult);
aDialogResult
- On return, a pointer to the selection made by the user in the dialog box.
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
QuickDraw GX sends theGXJobPrintDialog
message when the user selects Print from the File menu and the application subsequently calls theGXJobPrintDialog
function to display the Print dialog box on the user's screen.The default implementation of this message adds the standard printing panels and interface and then displays the dialog box.
You usually override this message to customize the dialog box by adding panels using the
GXSetupDialogPanel
function.SPECIAL CONSIDERATIONS
You never send theGXJobPrintDialog
message yourself.You must forward the
GXJobPrintDialog
message to other message handlers. Add your panels and then forward the message.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. SEE ALSO
You can find an example of an override of theGXJobPrintDialog
message in
Listing 2-3 on page 2-13 in the chapter "Printing Extensions."The
GXSetupDialogPanel
function is described in the section "Adding a Panel to a Print Dialog Box" beginning on page 5-27 in the chapter "Printing Functions for Message Overrides."
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help